<template>
  <view class="container" @tap="navigateToVerification">

  <view class="bg-image">
    <image src="/static/bg13.png" mode="aspectFill"></image>
    <view class="bg2-overlay">
      <image src="/static/log12.png" mode="aspectFit"></image>
    </view>
  </view>
    
    <view class="qrcode-container">
      <text class="student-type">本科生</text>
      
      <view class="scan-text">
        <text>扫码领取</text>
        <text>Scan to claim</text>
      </view>
      
      <view class="qrcode-image">
       
        <image src="/static/erweima.png" mode="aspectFit"></image>
      </view>
      
      <text class="help-text">遇到问题请联系现场工作人员</text>
      <text class="help-text-en">For assistance, contact our on-site staff.</text>
      
      <view class="proxy-pickup">
        <text>不在现场？协助代领</text>
        <text class="proxy-pickup-en">Can't attend? Authorize someone to pick up for you.</text>
      </view>
      
      <button class="proxy-btn">缺货登记</button>
    </view>
    
    <view class="footer">
      <text>成芯软件提供技术支持</text>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    close() {
      // 返回上一页
      uni.navigateBack()
    },
    navigateToVerification() {
      uni.redirectTo({
        url: '/pages/hexiao/hexiao'
      })
    }
  }
}
</script>

<style scoped>
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx 30rpx;
  background-color: #fff;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.close-btn,
.more-btn {
  font-size: 40rpx;
  color: #333;
}

.title {
  font-size: 32rpx;
  color: #333;
  font-weight: 500;
}

.bg-image {
  width: 100%;
  height: 150px;
  position: relative;
}

.bg-image image {
  width: 100%;
  height: 100%;
}

.bg2-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg2-overlay image {
  max-width: 100%;
  max-height: 100%;
}

.qrcode-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60rpx 30rpx;
  background-color: #fff;
}

.student-type {
  font-size: 48rpx;
  color: #1890ff;
  font-weight: bold;
  margin-bottom: 40rpx;
}

.scan-text {
  text-align: center;
  margin-bottom: 60rpx;
}

.scan-text text:first-child {
  font-size: 36rpx;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.scan-text text:last-child {
  font-size: 24rpx;
  color: #666;
  display: block;
}

.qrcode-image {
  width: 400rpx;
  height: 400rpx;
  margin-bottom: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 20rpx;
  border-radius: 20rpx;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
}

.qrcode-image image {
  width: 100%;
  height: 100%;
}

.help-text {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 10rpx;
}

.help-text-en {
  font-size: 24rpx;
  color: #999;
  margin-bottom: 40rpx;
}

.proxy-pickup {
  text-align: center;
  margin-bottom: 60rpx;
}

.proxy-pickup text:first-child {
  font-size: 28rpx;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.proxy-pickup-en {
  font-size: 24rpx;
  color: #999;
  display: block;
}

.proxy-btn {
  width: 300rpx;
  height: 80rpx;
  background-color: #fff;
  color: #1890ff;
  font-size: 28rpx;
  border: 2rpx solid #1890ff;
  border-radius: 40rpx;
  margin-bottom: 40rpx;
}

.footer {
  padding: 20rpx 0;
  text-align: center;
  font-size: 24rpx;
  color: #999;
  background-color: #fff;
}
</style>